package cn.school.entity;

import java.io.Serializable;
import java.util.Date;

public class ExamResult implements Serializable {
    private int id,stId,sbId;
    private float score;
    private Date examDate;

    //关联对象的方法
    private Student stu;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getStId() {
        return stId;
    }

    public void setStId(int stId) {
        this.stId = stId;
    }

    public int getSbId() {
        return sbId;
    }

    public void setSbId(int sbId) {
        this.sbId = sbId;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public Date getExamDate() {
        return examDate;
    }

    public void setExamDate(Date examDate) {
        this.examDate = examDate;
    }

    public Student getStu() {
        return stu;
    }

    public void setStu(Student stu) {
        this.stu = stu;
    }

    @Override
    public String toString() {
        return "ExamResult{" +
                "id=" + id +
                ", stId=" + stId +
                ", sbId=" + sbId +
                ", score=" + score +
                ", examDate=" + examDate +
                '}';
    }
}
